#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#

x = (i for i in range(10))
print(x, type(x))
# <generator object <genexpr> at 0x00000231AB5725E8> <class 'generator'>